<extend name="Template:main/content" />
<block name="page-content-wrapper-content">

<form class="form-horizontal" method="post" action="__CONTROLLER__/batch_summary_list" name="basic_validate" id="basic_validate" novalidate="novalidate">
	
<table class="table table-bordered table-striped with-check">
	<thead>
		<tr>
			<th><input type="checkbox" id="title-table-checkbox"
				name="title-table-checkbox" /></th>
			<th width="30px">序号</th>
			<th>盈彩账号</th>
			<th>彩种</th>
			<th>购买套餐</th>
			<th>价格</th>
			<th>支付方式</th>
			<th>订单状态</th>
			<th>支付串码</th>
			<th>申请时间</th>
			<th>审核时间</th>
			<th width="100px">操作</th>
		</tr>
	</thead>
	
	<tbody>
		<volist name="list" id="v">
		<tr>
			<td><input type="checkbox" name=checkboxes[] value={$v.id} /></td>
			<td>
				<div class="numerical">{$key+1}</div>
			</td>
			<td>{$v.username}</td>
			<td>{$v.caizhong}</td>
			<td>{$v.taocan}</td>
			<td><strong style="font-weigth: bold; color: red">{$v.money}</strong></td>
			
			<td><if condition="$v['pay_type'] eq 0"> 未支付 <elseif
					condition="$v['pay_type'] eq 1" /> <strong
					style="font-weigth: bold; color: blue">支付宝支付</strong> <elseif
					condition="$v['pay_type'] eq 2" /> <strong
					style="font-weigth: bold; color: green">微信支付</strong> <else /> <strong
					style="font-weigth: bold; color: red">免支付</strong> </if></td>
			<td><if condition="$v['order_statue'] eq 0"> 待支付 <elseif
					condition="$v['order_statue'] eq 1" /> <strong
					style="font-weigth: bold; color: blue">待审核</strong> <elseif
					condition="$v['order_statue'] eq 2" /> <strong
					style="font-weigth: bold; color: green">审核通过</strong> <else /> <strong
					style="font-weigth: bold; color: red">已过期</strong> </if></td>
			<td><strong style="font-weigth: bold; color: red">{$v.code}</strong></td>
			<td>{$v.add_time|date="Y-m-d H:i:s",###}</td>
			<td>{$v.review_time|date="Y-m-d H:i:s",###}</td>
			<td class="center">
			<if condition="$v['order_statue'] eq 2 "> 
			 <else />
			 	<a class="btn btn-primary" href="__CONTROLLER__/batch_summary?id={$v.id}" form-type='content' onClick="return confirm('确定审核通过?');">审核通过</a>
			</if>
			</td>
		</tr>
		</volist>
		<tr>
					<td>/</td>
					<td>/</td>
					<th >/</th>
					<th >/</th>
					<th style="color:green;font-size:20px;">所有页面数据合计:</th>
					<th style="color:green;font-size:20px;" >{$statistics}</th>
					<th >/</th>
					<th >/</th>
					<td>/</td>
					<th >/</th>
					<th >/</th>
					<th >/</th>
				</tr>
		
	</tbody>
</table>

<div id="myAlert-bean" class="modal hide" aria-hidden="true"
	style="display: none;">
	<div class="modal-header">
		<button data-dismiss="modal" class="close" type="button">×</button>
		<h3>删除</h3>
	</div>
	<div class="modal-body">
		<p>内容删除之后将不能够恢复，确定要做删除吗？</p>
	</div>
	<div class="modal-footer">
		<a data-dismiss="modal" class="btn btn-primary data-del-bean-alert"
			href="__CONTROLLER__/foreverdelete">确定</a> <a data-dismiss="modal"
			class="btn" href="#">取消</a>
	</div>
</div>
<if condition="$v['order_statue'] neq 2">
<div>
<button type="submit" class="btn btn-success" form-type="form-content" >批量审核通过</button>
</if>
</form>

<!-- page --> <include file="Template:main/page" /> </block>